package com.cskaoyan.service;

import com.cskaoyan.dao.UserDao;
import lombok.Data;

/**
 * @author stone
 * @date 2022/04/25 09:50
 */
@Data
public class OrderServiceImpl implements OrderService {

    //UserDao userDao = new UserDaoImpl();
    UserDao userDao;

    //形参从容器中来
    /*public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }*/

    @Override
    public void sayHello() {
        userDao.sayHello();
        System.out.println("hello world");
    }
}
